Skip to content

Commit

Permalink
siva: Get on broken sivas now return ErrRepositoryNotExists
Browse files Browse the repository at this point in the history
Signed-off-by: Javi Fontan <jfontan@gmail.com>
  • Loading branch information
jfontan committed Feb 21, 2019
1 parent f7b1a02 commit 81cbfef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion siva/checkpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func TestCheckpoint_Broken_Siva_File_No_Checkpoint(t *testing.T) {
loc, err := lib.Location("really_broken")
require.NoError(err)
_, err = loc.Get("github.com/foo/bar", borges.ReadOnlyMode)
require.True(borges.ErrLocationNotExists.Is(err))
require.True(borges.ErrRepositoryNotExists.Is(err))
}

func TestCheckpoint(t *testing.T) {
Expand Down

0 comments on commit 81cbfef

Please sign in to comment.