Skip to content

Commit

Permalink
fix tsh config test
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoandredinis committed Mar 31, 2022
1 parent e60d9e0 commit 48f1040
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tool/tsh/tshconfig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ func TestLoadConfigNonExistingFile(t *testing.T) {

func TestLoadConfigEmptyFile(t *testing.T) {
file, err := os.CreateTemp("", "test-telelport")
file.Write([]byte(" "))
require.NoError(t, err)
defer os.Remove(file.Name())

file.Write([]byte(" "))

gotConfig, gotErr := loadConfig(file.Name())
require.NoError(t, gotErr)
require.Equal(t, &TshConfig{}, gotConfig)
Expand Down

0 comments on commit 48f1040

Please sign in to comment.