Skip to content

Commit

Permalink
Fix test order
Browse files Browse the repository at this point in the history
  • Loading branch information
178inaba committed May 31, 2017
1 parent ad81435 commit 05559c4
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,6 @@ import (
"testing"
)

func TestGetConfigFilePath(t *testing.T) {
configFilePath, err := getConfigFilePath()
if err != nil {
t.Fatalf("should not be fail: %v", err)
}
if !strings.Contains(configFilePath, defaultTokenFilePath) {
t.Fatalf("%q should be contained in output of config file path: %v",
defaultTokenFilePath, configFilePath)
}
}

func TestSaveToken(t *testing.T) {
token := "abcde"
fp := "/tmp/gistup/token"
Expand Down Expand Up @@ -56,3 +45,14 @@ func TestSaveToken(t *testing.T) {
t.Fatalf("want %q but %q", token, string(bs))
}
}

func TestGetConfigFilePath(t *testing.T) {
configFilePath, err := getConfigFilePath()
if err != nil {
t.Fatalf("should not be fail: %v", err)
}
if !strings.Contains(configFilePath, defaultTokenFilePath) {
t.Fatalf("%q should be contained in output of config file path: %v",
defaultTokenFilePath, configFilePath)
}
}

0 comments on commit 05559c4

Please sign in to comment.