Skip to content

Instantly share code, notes, and snippets.

@stackdump
Created March 5, 2019 17:59
Show Gist options
  • Select an option

  • Save stackdump/74f65d61e2b1b010eb1b452014f49a25 to your computer and use it in GitHub Desktop.

Select an option

Save stackdump/74f65d61e2b1b010eb1b452014f49a25 to your computer and use it in GitHub Desktop.
From 63a3dcf43fb3c8cf790cdbad9ce715e2dc29960d Mon Sep 17 00:00:00 2001
From: stackdump <[email protected]>
Date: Tue, 5 Mar 2019 11:58:54 -0600
Subject: [PATCH] run long test
---
simTest/LeaderBrainSwap_test.go | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/simTest/LeaderBrainSwap_test.go b/simTest/LeaderBrainSwap_test.go
index 8850a28ad..41fbd005c 100644
--- a/simTest/LeaderBrainSwap_test.go
+++ b/simTest/LeaderBrainSwap_test.go
@@ -61,7 +61,7 @@ func TestLeaderBrainSwap(t *testing.T) {
}
// start the 6 nodes running 012345
- state0 := SetupSim("LLLFFF", params, 30, 0, 0, t)
+ state0 := SetupSim("LLLFFF", params, 2000, 0, 0, t)
state3 := engine.GetFnodes()[3].State // Get node 2
WaitForAllNodes(state0)
@@ -69,14 +69,14 @@ func TestLeaderBrainSwap(t *testing.T) {
// rewrite the config to make consecutive brainswaps
// KLUDGE: set to 2 batches to ensure passing on CI
- for batch := 0; batch < 2 ; batch++ {
+ for batch := 0; batch < 1000; batch++ {
t.Run(fmt.Sprintf("Wait For Identity Swap %v", batch), func(t *testing.T) {
- target := batch+10
+ target := batch + 10
change := fmt.Sprintf("ChangeAcksHeight = %v\n", target)
- if batch % 2 == 0 {
+ if batch%2 == 0 {
WriteConfigFile(1, 5, change, t) // Setup A brain swap between L1 and F5
WriteConfigFile(5, 1, change, t)
--
2.17.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment