From 9fc8a5b352e5b03a6373857e264a24463e9b9b9d Mon Sep 17 00:00:00 2001 From: Seebs Date: Mon, 1 Apr 2019 19:47:59 -0500 Subject: [PATCH] handle a specific error that might be an expected error I'm honestly not sure here. --- ctl/inspect_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctl/inspect_test.go b/ctl/inspect_test.go index 265d77a12..69efe07fa 100644 --- a/ctl/inspect_test.go +++ b/ctl/inspect_test.go @@ -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) }