Skip to content

Commit ad9935a

Browse files
author
wafuwafu13
committed
use environment variable by default
1 parent 40d287c commit ad9935a

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ on:
1010
pull_request:
1111
env:
1212
DEBIAN_FRONTEND: noninteractive
13-
RUN_TEST_ON_GITHUB_ACTIONS: 1
1413
jobs:
1514
lint:
1615
strategy:

check-dns/lib/check_dns_test.go

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,6 @@ func TestCheckDns(t *testing.T) {
5858
checkers.CRITICAL,
5959
[]string{""},
6060
},
61-
{
62-
[]string{"-H", "jprs.co.jp", "-s", "202.11.16.49", "--norec"},
63-
checkers.OK,
64-
[]string{"status: NOERROR"},
65-
},
66-
{
67-
[]string{"-H", "www.google.com", "-s", "202.11.16.49", "--norec"},
68-
checkers.CRITICAL,
69-
[]string{"status: REFUSED"},
70-
},
7161
{
7262
[]string{"-H", "example.com", "-s", "8.8.8.8", "-q", "AAAA"},
7363
checkers.OK,
@@ -97,7 +87,7 @@ func TestCheckDns(t *testing.T) {
9787
t.Fatal(err)
9888
}
9989
// when runs without setting server in CI, status will be REFUSED
100-
if opts.Server == "" && os.Getenv("RUN_TEST_ON_GITHUB_ACTIONS") == "1" {
90+
if opts.Server == "" && os.Getenv("CI") == "true" {
10191
continue
10292
}
10393
ckr := opts.run()

0 commit comments

Comments
 (0)