Skip to content

Commit 0aa00f2

Browse files
committed
fix(collaborator):fixed tests
1 parent e414286 commit 0aa00f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code/go/0chain.net/blobbercore/handler/handler_refpath_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func TestHandlers_ReferencePath(t *testing.T) {
150150
alloc: alloc,
151151
setupDbMock: baseSetupDbMock,
152152
wantCode: http.StatusBadRequest,
153-
wantBody: "{\"code\":\"invalid_signature\",\"error\":\"invalid_signature: Invalid signature\"}\n\n",
153+
wantBody: "{\"code\":\"invalid_signature\",\"error\":\"invalid_signature: could not verify the allocation owner or colloborator\"}\n\n",
154154
}
155155
negativeTests = append(negativeTests, emptySignature)
156156

@@ -194,7 +194,7 @@ func TestHandlers_ReferencePath(t *testing.T) {
194194
alloc: alloc,
195195
setupDbMock: baseSetupDbMock,
196196
wantCode: http.StatusBadRequest,
197-
wantBody: "{\"code\":\"invalid_signature\",\"error\":\"invalid_signature: Invalid signature\"}\n\n",
197+
wantBody: "{\"code\":\"invalid_signature\",\"error\":\"invalid_signature: could not verify the allocation owner or colloborator\"}\n\n",
198198
}
199199
negativeTests = append(negativeTests, wrongSignature)
200200
}

0 commit comments

Comments
 (0)