Skip to content

Commit

Permalink
fix asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
mfleader committed Jan 5, 2024
1 parent cd58b89 commit 140473a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions loadfile/loadfile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,17 @@ func TestLoadContext(t *testing.T) {
neededFiles = []string{
dirpath,
}
_, err = loadfile.LoadContext(neededFiles)
ctxFiles, err := loadfile.LoadContext(neededFiles)
assert.Error(t, err)
//assert.Nil(t, ctxFiles)
assert.Equals(t, ctxFiles, nil)

// error on loading a symlink directory
neededFiles = []string{
symlinkDirpath,
}
_, err = loadfile.LoadContext(neededFiles)
ctxFiles, err = loadfile.LoadContext(neededFiles)
assert.Error(t, err)
//assert.Nil(t, ctxFiles)
assert.Equals(t, ctxFiles, nil)

t.Cleanup(func() {
assert.NoError(t, os.RemoveAll(testdir))
Expand Down

0 comments on commit 140473a

Please sign in to comment.