Skip to content

Commit

Permalink
fix: In testConfig, don't configure MDNS with Interval:10 (so that th…
Browse files Browse the repository at this point in the history
…e final config is the same as the backup).

Signed-off-by: jefft0 <jeff@thefirst.org>
  • Loading branch information
jefft0 committed Nov 29, 2022
1 parent be2432f commit aafe091
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public void testConfig() throws Exception {
getMDNSStateFromConfig()
);

JSONObject mdnsCfg = new JSONObject("{\"MDNS\":{\"Enabled\":true,\"Interval\":10}}");
JSONObject mdnsCfg = new JSONObject("{\"MDNS\":{\"Enabled\":true}}");
ipfs.setConfigKey("Discovery", mdnsCfg);

assertTrue(
Expand Down
2 changes: 1 addition & 1 deletion ios/Bridge/GomobileIPFSTests/ConfigIPFSTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class ConfigIPFSTests: XCTestCase {
"MDNS state should be enabled after setting it in config"
)

let mdnsCfg = ["MDNS": ["Enabled": true, "Interval": 10]]
let mdnsCfg = ["MDNS": ["Enabled": true]]
try ipfs.setConfigKey("Discovery", mdnsCfg);

XCTAssertTrue(
Expand Down

0 comments on commit aafe091

Please sign in to comment.