diff options
| author | Shulhan <ms@kilabit.info> | 2018-05-23 04:13:16 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2018-05-23 04:13:16 +0700 |
| commit | 4ec9107568ca6b619810a31defa69c3a8208b4b9 (patch) | |
| tree | b81e70c57ac2a0eb1f7b7e4ff8a4a4486b34d50f /beku_test.go | |
| parent | 98f15fe8555833cfdcf66ce2e9ca6f2359655afa (diff) | |
| download | beku-4ec9107568ca6b619810a31defa69c3a8208b4b9.tar.xz | |
[test] Add unit test for some Env methods
Not all methods can be tested due to some operation requiring network
connection.
Diffstat (limited to 'beku_test.go')
| -rw-r--r-- | beku_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/beku_test.go b/beku_test.go index 2f0ec43..bc116a9 100644 --- a/beku_test.go +++ b/beku_test.go @@ -74,7 +74,7 @@ func testResetOutput(t *testing.T, truncate bool) { } } -func TestMain(t *testing.M) { +func TestMain(m *testing.M) { orgGOPATH := build.Default.GOPATH testGOPATH, err := os.Getwd() @@ -107,5 +107,5 @@ func TestMain(t *testing.M) { log.Printf("testGitPkgCur: %+v\n", *testGitPkgCur) log.Printf("testGitPkgNew: %+v\n", *testGitPkgNew) - os.Exit(t.Run()) + os.Exit(m.Run()) } |
