Skip to content

Commit

Permalink
fix test issue
Browse files Browse the repository at this point in the history
  • Loading branch information
amoylan2 committed Jul 3, 2024
1 parent 0eca0d4 commit 8297a5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions coordinator/internal/types/prover.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ func MakeProverType(proof_type message.ProofType) ProverType {
switch proof_type {
case message.ProofTypeChunk:
return ProverTypeChunk
case message.ProofTypeBatch | message.ProofTypeBundle:
case message.ProofTypeBatch, message.ProofTypeBundle:
return ProverTypeBatch
default:
return ProverTypeUndefined
}
return ProverTypeUndefined
}
4 changes: 2 additions & 2 deletions coordinator/test/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,8 @@ func testValidProof(t *testing.T) {

proofStatus := verifiedSuccess
proverTask, errCode, errMsg := provers[i].getProverTask(t, proofType)
assert.Equal(t, errCode, types.Success)
assert.Equal(t, errMsg, "")
assert.Equal(t, types.Success, errCode)
assert.Equal(t, "", errMsg)
assert.NotNil(t, proverTask)
provers[i].submitProof(t, proverTask, proofStatus, types.Success)
}
Expand Down

0 comments on commit 8297a5d

Please sign in to comment.