Skip to content

Commit

Permalink
fix unitests
Browse files Browse the repository at this point in the history
  • Loading branch information
omerlavanet committed Dec 8, 2024
1 parent 16ac6f1 commit f609af8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions protocol/chainlib/jsonRPC_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -503,9 +503,12 @@ func TestJsonRpcInternalPathsMultipleVersionsAvalanche(t *testing.T) {
require.Equal(t, reqDataWithApiName.apiName, api.Name)
require.Equal(t, correctPath, collection.CollectionData.InternalPath)
} else {
require.Error(t, err)
require.ErrorIs(t, err, common.APINotSupportedError)
require.Nil(t, chainMessage)
if err == nil {
require.True(t, strings.Contains(chainMessage.GetApi().Name, "Default-"))
} else {
require.ErrorIs(t, err, common.APINotSupportedError)
require.Nil(t, chainMessage)
}
}
})
}
Expand Down

0 comments on commit f609af8

Please sign in to comment.