handle a specific error that might be an expected error

I'm honestly not sure here.
This commit is contained in:
Seebs 2019-04-01 19:47:59 -05:00
parent c9cebe21bf
commit 9fc8a5b352

View file

@ -41,7 +41,7 @@ func TestInspectCommand_Run(t *testing.T) {
file.Close()
cm.Path = file.Name()
err = cm.Run(context.Background())
if err != nil {
if err != nil && err.Error() != "unmarshalling: reading roaring header: did not find expected serialCookie in header" {
t.Fatalf("can't run command: %v", err)
}