aboutsummaryrefslogtreecommitdiffstats
path: root/core/configuration-chain_test.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2019-04-08 15:31:25 +0800
committerGitHub <noreply@github.com>2019-04-08 15:31:25 +0800
commit337b5729c1cea837ac5ee8e1646dca587f52ebbd (patch)
tree62fcfb7e2586ec2f69323f7c15e53fccb7e20357 /core/configuration-chain_test.go
parent1ea06aaeda901ed8c5bfa0dd8341f232038b4bd9 (diff)
downloaddexon-consensus-337b5729c1cea837ac5ee8e1646dca587f52ebbd.tar
dexon-consensus-337b5729c1cea837ac5ee8e1646dca587f52ebbd.tar.gz
dexon-consensus-337b5729c1cea837ac5ee8e1646dca587f52ebbd.tar.bz2
dexon-consensus-337b5729c1cea837ac5ee8e1646dca587f52ebbd.tar.lz
dexon-consensus-337b5729c1cea837ac5ee8e1646dca587f52ebbd.tar.xz
dexon-consensus-337b5729c1cea837ac5ee8e1646dca587f52ebbd.tar.zst
dexon-consensus-337b5729c1cea837ac5ee8e1646dca587f52ebbd.zip
core: run TSig forever when ForceSync (#554)
Diffstat (limited to 'core/configuration-chain_test.go')
-rw-r--r--core/configuration-chain_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/configuration-chain_test.go b/core/configuration-chain_test.go
index c3a8023..61f0906 100644
--- a/core/configuration-chain_test.go
+++ b/core/configuration-chain_test.go
@@ -331,7 +331,7 @@ func (s *ConfigurationChainTestSuite) TestConfigurationChain() {
continue
}
go func(cc *configurationChain) {
- tsig, err := cc.runTSig(round, hash)
+ tsig, err := cc.runTSig(round, hash, 5*time.Second)
// Prevent racing by collecting errors and check in main thread.
errs <- err
tsigChan <- tsig
@@ -547,13 +547,13 @@ func (s *ConfigurationChainTestSuite) TestMultipleTSig() {
continue
}
go func(cc *configurationChain) {
- tsig1, err := cc.runTSig(round, hash1)
+ tsig1, err := cc.runTSig(round, hash1, 5*time.Second)
// Prevent racing by collecting errors and check in main thread.
errs <- err
tsigChan1 <- tsig1
}(cc)
go func(cc *configurationChain) {
- tsig2, err := cc.runTSig(round, hash2)
+ tsig2, err := cc.runTSig(round, hash2, 5*time.Second)
// Prevent racing by collecting errors and check in main thread.
errs <- err
tsigChan2 <- tsig2
@@ -604,7 +604,7 @@ func (s *ConfigurationChainTestSuite) TestTSigTimeout() {
}
qualify++
go func(cc *configurationChain) {
- _, err := cc.runTSig(round, hash)
+ _, err := cc.runTSig(round, hash, 5*time.Second)
// Prevent racing by collecting errors and check in main thread.
errs <- err
}(cc)