@@ -47,7 +47,7 @@ func TestConfigDump(t *testing.T) {
47
47
swarm .ExpectExit ()
48
48
}
49
49
50
- func TestConfigFailsSwapEnabledNoSwapApi (t * testing.T ) {
50
+ func TestConfigFailsSwapEnabledNoBackendURL (t * testing.T ) {
51
51
flags := []string {
52
52
fmt .Sprintf ("--%s" , SwarmNetworkIdFlag .Name ), "42" ,
53
53
fmt .Sprintf ("--%s" , SwarmPortFlag .Name ), "54545" ,
@@ -56,7 +56,7 @@ func TestConfigFailsSwapEnabledNoSwapApi(t *testing.T) {
56
56
}
57
57
58
58
swarm := runSwarm (t , flags ... )
59
- swarm .Expect ("Fatal: " + SwarmErrSwapSetNoAPI + "\n " )
59
+ swarm .Expect ("Fatal: " + SwarmErrSwapSetNoBackendURL + "\n " )
60
60
swarm .ExpectExit ()
61
61
}
62
62
@@ -310,7 +310,6 @@ func TestConfigFileOverrides(t *testing.T) {
310
310
defaultConf .Port = httpPort
311
311
defaultConf .DbCapacity = 9000000
312
312
defaultConf .HiveParams .KeepAliveInterval = 6000000000
313
- defaultConf .Swap .Params .Strategy .AutoCashInterval = 600 * time .Second
314
313
//defaultConf.SyncParams.KeyBufferSize = 512
315
314
//create a TOML string
316
315
out , err := tomlSettings .Marshal (& defaultConf )
@@ -392,14 +391,6 @@ func TestConfigFileOverrides(t *testing.T) {
392
391
t .Fatalf ("Expected HiveParams KeepAliveInterval to be %d, got %d" , uint64 (6000000000 ), uint64 (info .HiveParams .KeepAliveInterval ))
393
392
}
394
393
395
- if info .Swap .Params .Strategy .AutoCashInterval != 600 * time .Second {
396
- t .Fatalf ("Expected SwapParams AutoCashInterval to be %ds, got %d" , 600 , info .Swap .Params .Strategy .AutoCashInterval )
397
- }
398
-
399
- // if info.SyncParams.KeyBufferSize != 512 {
400
- // t.Fatalf("Expected info.SyncParams.KeyBufferSize to be %d, got %d", 512, info.SyncParams.KeyBufferSize)
401
- // }
402
-
403
394
node .Shutdown ()
404
395
}
405
396
@@ -521,7 +512,6 @@ func TestConfigCmdLineOverridesFile(t *testing.T) {
521
512
defaultConf .Port = "8588"
522
513
defaultConf .DbCapacity = 9000000
523
514
defaultConf .HiveParams .KeepAliveInterval = 6000000000
524
- defaultConf .Swap .Params .Strategy .AutoCashInterval = 600 * time .Second
525
515
//defaultConf.SyncParams.KeyBufferSize = 512
526
516
//create a TOML file
527
517
out , err := tomlSettings .Marshal (& defaultConf )
@@ -606,14 +596,6 @@ func TestConfigCmdLineOverridesFile(t *testing.T) {
606
596
t .Fatalf ("Expected HiveParams KeepAliveInterval to be %d, got %d" , uint64 (6000000000 ), uint64 (info .HiveParams .KeepAliveInterval ))
607
597
}
608
598
609
- if info .Swap .Params .Strategy .AutoCashInterval != 600 * time .Second {
610
- t .Fatalf ("Expected SwapParams AutoCashInterval to be %ds, got %d" , 600 , info .Swap .Params .Strategy .AutoCashInterval )
611
- }
612
-
613
- // if info.SyncParams.KeyBufferSize != 512 {
614
- // t.Fatalf("Expected info.SyncParams.KeyBufferSize to be %d, got %d", 512, info.SyncParams.KeyBufferSize)
615
- // }
616
-
617
599
node .Shutdown ()
618
600
}
619
601
0 commit comments