diff options
author | aszlig <aszlig@nix.build> | 2021-05-08 23:36:39 +0200 |
---|---|---|
committer | aszlig <aszlig@nix.build> | 2021-05-09 02:28:20 +0200 |
commit | c066cc3c0b1f7f3c4b7e11ef330ce0980440273a (patch) | |
tree | b955cdc09c6c7a37efd599757f7d34991dc2df4d /nixos | |
parent | 62a518b904a235709b30293a08caffa202b7cbb2 (diff) |
nixos/tests/networking: Fix str literal comparison
Linter error: use ==/!= to compare constant literals (str, bytes, int, float, tuple) Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/tests/networking.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/tests/networking.nix b/nixos/tests/networking.nix index 1ea61f99a9513..c8756207f27b6 100644 --- a/nixos/tests/networking.nix +++ b/nixos/tests/networking.nix @@ -511,7 +511,7 @@ let machine.sleep(10) residue = machine.succeed("ip tuntap list") assert ( - residue is "" + residue == "" ), "Some virtual interface has not been properly cleaned:\n{}".format(residue) ''; }; @@ -665,10 +665,10 @@ let ipv4Residue = machine.succeed("ip -4 route list dev eth0 | head -n-3").strip() ipv6Residue = machine.succeed("ip -6 route list dev eth0 | head -n-3").strip() assert ( - ipv4Residue is "" + ipv4Residue == "" ), "The IPv4 routing table has not been properly cleaned:\n{}".format(ipv4Residue) assert ( - ipv6Residue is "" + ipv6Residue == "" ), "The IPv6 routing table has not been properly cleaned:\n{}".format(ipv6Residue) ''; }; |