From 81cbfef9105663eb0d4a27df35e7588a837ffccd Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Thu, 21 Feb 2019 22:12:19 +0100 Subject: [PATCH] siva: Get on broken sivas now return ErrRepositoryNotExists Signed-off-by: Javi Fontan --- siva/checkpoint_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/siva/checkpoint_test.go b/siva/checkpoint_test.go index c357b6c..dbba222 100644 --- a/siva/checkpoint_test.go +++ b/siva/checkpoint_test.go @@ -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) {