From 5c62690653ee743f19beabb8cc86af2a9179ff31 Mon Sep 17 00:00:00 2001 From: Mitsuo Heijo Date: Tue, 6 Oct 2020 21:34:32 +0900 Subject: [PATCH] Rename test directory to testdata See https://golang.org/cmd/go/#hdr-Test_packages --- CHANGELOG.md | 1 + oauthproxy_test.go | 2 +- {test => testdata}/openredirects.txt | 0 3 files changed, 2 insertions(+), 1 deletion(-) rename {test => testdata}/openredirects.txt (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 41dabfa..be82409 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,7 @@ - [#783](https://github.com/oauth2-proxy/oauth2-proxy/pull/783) Update Go to 1.15 (@johejo) - [#813](https://github.com/oauth2-proxy/oauth2-proxy/pull/813) Fix build (@thiagocaiubi) - [#750](https://github.com/oauth2-proxy/oauth2-proxy/pull/750) ci: Migrate to Github Actions (@shinebayar-g) +- [#829](https://github.com/oauth2-proxy/oauth2-proxy/pull/820) Rename test directory to testdata (@johejo) # v6.1.1 diff --git a/oauthproxy_test.go b/oauthproxy_test.go index 33f131c..d0feec2 100644 --- a/oauthproxy_test.go +++ b/oauthproxy_test.go @@ -330,7 +330,7 @@ func TestOpenRedirects(t *testing.T) { t.Fatal(err) } - file, err := os.Open("./test/openredirects.txt") + file, err := os.Open("./testdata/openredirects.txt") if err != nil { t.Fatal(err) } diff --git a/test/openredirects.txt b/testdata/openredirects.txt similarity index 100% rename from test/openredirects.txt rename to testdata/openredirects.txt