Skip to content
This repository has been archived by the owner on Jul 14, 2020. It is now read-only.

Commit

Permalink
fix test config helper
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Xie committed Nov 1, 2016
1 parent 316d105 commit 4d71e5f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -146,21 +146,21 @@ def get_config_overrides(filename)
override = {}
parts = filename.split('_')

if parts.include?('Homestead')
if filename =~ /BlockchainTests_Homestead/
override[:homestead_fork_blknum] = 0
end

if parts.include?('TestNetwork')
if filename =~ /BlockchainTests_TestNetwork/
override[:homestead_fork_blknum] = 5
override[:dao_fork_blknum] = 8
override[:anti_dos_fork_blknum] = 10
elsif parts.include?('EIP150')
elsif filename =~ /BlockchainTests_EIP150/
override[:homestead_fork_blknum] = 0
override[:anti_dos_fork_blknum] = 0
override[:dao_fork_blknum] = 2**100
end

if parts.include?('bcTheDaoTest')
if filename =~ /bcTheDaoTest/
override[:dao_fork_blknum] = 8
end

Expand Down

0 comments on commit 4d71e5f

Please sign in to comment.