Skip to content

Commit

Permalink
Update internal/pkg/file/atomic_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: Kimmo Lehto <[email protected]>
Signed-off-by: Tom Wieczorek <[email protected]>
  • Loading branch information
twz123 and kke committed Nov 14, 2024
1 parent 94a96b8 commit bc4a0ae
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/pkg/file/atomic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,8 @@ func TestWriteAtomically(t *testing.T) {
assertDirEmpty := func(t *testing.T, dir string) {
t.Helper()
entries, err := os.ReadDir(dir)
if assert.NoError(t, err) {
assert.Empty(t, entries)
}
assert.Empty(t, entries)
assert.NoError(t, err)
}

t.Run("writeFails", func(t *testing.T) {
Expand Down

0 comments on commit bc4a0ae

Please sign in to comment.