@@ -21,7 +21,7 @@ suite "Waku config - apply preset":
21
21
let expectedConf = ClusterConf .TheWakuNetworkConf ()
22
22
23
23
# # Given
24
- let preConfig = WakuNodeConf (cmd: noCommand, preset: " default " )
24
+ let preConfig = WakuNodeConf (cmd: noCommand, preset: " twn " )
25
25
26
26
# # When
27
27
let res = applyPresetConfiguration (preConfig)
@@ -41,13 +41,13 @@ suite "Waku config - apply preset":
41
41
assert conf.numShardsInNetwork == expectedConf.numShardsInNetwork
42
42
assert conf.discv5BootstrapNodes == expectedConf.discv5BootstrapNodes
43
43
44
- test " Subscribes to all valid shards in default network " :
44
+ test " Subscribes to all valid shards in twn " :
45
45
# # Setup
46
46
let expectedConf = ClusterConf .TheWakuNetworkConf ()
47
47
48
48
# # Given
49
49
let shards: seq [uint16 ] = @ [0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 ]
50
- let preConfig = WakuNodeConf (cmd: noCommand, preset: " default " , shards: shards)
50
+ let preConfig = WakuNodeConf (cmd: noCommand, preset: " twn " , shards: shards)
51
51
52
52
# # When
53
53
let res = applyPresetConfiguration (preConfig)
@@ -57,13 +57,13 @@ suite "Waku config - apply preset":
57
57
let conf = res.get ()
58
58
assert conf.shards.len == expectedConf.numShardsInNetwork.int
59
59
60
- test " Subscribes to some valid shards in default network " :
60
+ test " Subscribes to some valid shards in twn " :
61
61
# # Setup
62
62
let expectedConf = ClusterConf .TheWakuNetworkConf ()
63
63
64
64
# # Given
65
65
let shards: seq [uint16 ] = @ [0 , 4 , 7 ]
66
- let preConfig = WakuNodeConf (cmd: noCommand, preset: " default " , shards: shards)
66
+ let preConfig = WakuNodeConf (cmd: noCommand, preset: " twn " , shards: shards)
67
67
68
68
# # When
69
69
let resConf = applyPresetConfiguration (preConfig)
@@ -76,12 +76,12 @@ suite "Waku config - apply preset":
76
76
for index, shard in shards:
77
77
assert shard in conf.shards
78
78
79
- test " Subscribes to invalid shards in default network " :
79
+ test " Subscribes to invalid shards in twn " :
80
80
# # Setup
81
81
82
82
# # Given
83
83
let shards: seq [uint16 ] = @ [0 , 4 , 7 , 10 ]
84
- let preConfig = WakuNodeConf (cmd: noCommand, preset: " default " , shards: shards)
84
+ let preConfig = WakuNodeConf (cmd: noCommand, preset: " twn " , shards: shards)
85
85
let postConfig = applyPresetConfiguration (preConfig)
86
86
87
87
# # When
0 commit comments