Skip to content

Commit 434b99f

Browse files
Add error message.
1 parent 89db8a7 commit 434b99f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

itests/utilities/common.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,9 @@ func GetTotalWavesAmount(suite *f.BaseSuite) uint64 {
358358
var totalWavesAmount uint64
359359
totalWavesAmountGo := GetTotalWavesAmountGo(suite)
360360
totalWavesAmountScala := GetTotalWavesAmountScala(suite)
361-
if totalWavesAmountGo == totalWavesAmountScala {
362-
totalWavesAmount = totalWavesAmountGo
361+
totalWavesAmount = totalWavesAmountScala
362+
if totalWavesAmountGo != totalWavesAmountScala {
363+
require.FailNow(suite.T(), "total Waves amount Go and total Waves amount Scala are not equal")
363364
}
364365
return totalWavesAmount
365366
}

0 commit comments

Comments
 (0)