Skip to content

Commit 4b444a1

Browse files
authored
test: fix preset tests (#3351)
1 parent 0eaf904 commit 4b444a1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/factory/test_config.nim

+7-7
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ suite "Waku config - apply preset":
2121
let expectedConf = ClusterConf.TheWakuNetworkConf()
2222

2323
## Given
24-
let preConfig = WakuNodeConf(cmd: noCommand, preset: "default")
24+
let preConfig = WakuNodeConf(cmd: noCommand, preset: "twn")
2525

2626
## When
2727
let res = applyPresetConfiguration(preConfig)
@@ -41,13 +41,13 @@ suite "Waku config - apply preset":
4141
assert conf.numShardsInNetwork == expectedConf.numShardsInNetwork
4242
assert conf.discv5BootstrapNodes == expectedConf.discv5BootstrapNodes
4343

44-
test "Subscribes to all valid shards in default network":
44+
test "Subscribes to all valid shards in twn":
4545
## Setup
4646
let expectedConf = ClusterConf.TheWakuNetworkConf()
4747

4848
## Given
4949
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)
5151

5252
## When
5353
let res = applyPresetConfiguration(preConfig)
@@ -57,13 +57,13 @@ suite "Waku config - apply preset":
5757
let conf = res.get()
5858
assert conf.shards.len == expectedConf.numShardsInNetwork.int
5959

60-
test "Subscribes to some valid shards in default network":
60+
test "Subscribes to some valid shards in twn":
6161
## Setup
6262
let expectedConf = ClusterConf.TheWakuNetworkConf()
6363

6464
## Given
6565
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)
6767

6868
## When
6969
let resConf = applyPresetConfiguration(preConfig)
@@ -76,12 +76,12 @@ suite "Waku config - apply preset":
7676
for index, shard in shards:
7777
assert shard in conf.shards
7878

79-
test "Subscribes to invalid shards in default network":
79+
test "Subscribes to invalid shards in twn":
8080
## Setup
8181

8282
## Given
8383
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)
8585
let postConfig = applyPresetConfiguration(preConfig)
8686

8787
## When

0 commit comments

Comments
 (0)