Skip to content

Commit

Permalink
fix: hack for devmode crash at rollback
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan-manole authored and Kalovelo committed Aug 4, 2022
1 parent 780ff69 commit 2caffc7
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions contract/test/game.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,6 @@ describe( 'GameContract', () => {
"not_player1"
)
} )
it( 'fails because no_hash', async () => {
await failsWith(
() => contract.methods.player1_move( "rock", withP1() ),
"no_hash"
)
} )
describe( "after player1_move", () => {
//let player0 to add hash
beforeEach( async () => {
Expand Down Expand Up @@ -214,6 +208,14 @@ describe( 'GameContract', () => {
)
} )
} )
describe('separate test because of dev-mode crash',()=>{
it( 'fails because no_hash', async () => {
await failsWith(
() => contract.methods.player1_move( "rock", withP1() ),
"no_hash"
)
} )
})
} )
describe( "reveal", () => {
it( 'fails because not player0', async () => {
Expand Down

0 comments on commit 2caffc7

Please sign in to comment.