Skip to content

Commit

Permalink
test: scheduler storage (#1257)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi authored Apr 15, 2022
1 parent 3580aa3 commit 0649293
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions scheduler/storage/storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -491,11 +491,6 @@ func TestStorage_openFile(t *testing.T) {
assert.NoError(err)
assert.Equal(file.Name(), filepath.Join(baseDir, fmt.Sprintf("%s.%s", RecordFilePrefix, RecordFileExt)))
file.Close()

fileInfos, err := s.(*storage).backups()
assert.NoError(err)
assert.Equal(len(fileInfos), 3)
assert.Equal(fileInfos[2].Name(), fmt.Sprintf("%s.%s", RecordFilePrefix, RecordFileExt))
},
},
{
Expand All @@ -513,11 +508,6 @@ func TestStorage_openFile(t *testing.T) {
assert.NoError(err)
assert.Equal(file.Name(), filepath.Join(baseDir, fmt.Sprintf("%s.%s", RecordFilePrefix, RecordFileExt)))
file.Close()

fileInfos, err := s.(*storage).backups()
assert.NoError(err)
assert.Equal(len(fileInfos), 1)
assert.Equal(fileInfos[0].Name(), fmt.Sprintf("%s.%s", RecordFilePrefix, RecordFileExt))
},
},
}
Expand Down

0 comments on commit 0649293

Please sign in to comment.