We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 831195d commit b14d973Copy full SHA for b14d973
contrib/raftable/t/000_basic.pl
@@ -3,7 +3,7 @@
3
4
use PostgresNode;
5
use TestLib;
6
-use Test::More tests => 4;
+use Test::More tests => 5;
7
8
sub genstr
9
{
@@ -79,7 +79,18 @@ sub start_nodes
79
while (my ($key, $value) = each(%tests))
80
81
my $o = $baker->psql('postgres', "select raftable('$key');");
82
- is($o, $value, "Check that baker has all the state replicated");
+ is($o, $value, "Baker has '$key'");
83
}
84
85
+my $ok = 1;
86
+my $o = $baker->psql('postgres', "select raftable();");
87
+while ($o =~ /\((\w+),(\w+)\)/g)
88
+{
89
+ if (!exists $tests{$1}) { $ok = 0; last; }
90
+ my $val = delete $tests{$1};
91
+ if ($val ne $2) { $ok = 0; last; }
92
+}
93
+if (keys %tests > 0) { $ok = 0; }
94
+is($ok, 1, "Baker has everything");
95
+
96
exit(0);
0 commit comments