summaryrefslogtreecommitdiffstats
path: root/modules/updatechecker/update_checker_test.go
blob: 5ac2603ca1f6f672fdfd2f98115e5889549d98ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2023 The Forgejo Authors. All rights reserved.
// SPDX-License-Identifier: MIT

package updatechecker

import (
	"testing"

	"github.com/stretchr/testify/assert"
	"github.com/stretchr/testify/require"
)

func TestDNSUpdate(t *testing.T) {
	version, err := getVersionDNS("release.forgejo.org")
	require.NoError(t, err)
	assert.NotEmpty(t, version)
}