summaryrefslogtreecommitdiff
path: root/test/it_dbi.t
diff options
context:
space:
mode:
authorNathan Gass2020-09-03 11:21:52 +0200
committerNathan Gass2020-09-03 11:21:52 +0200
commit99983d2d3ee03f24424d424ef6d8030ec55639d6 (patch)
treed9edb83a19af614519f3c9e144b6c5d69c734392 /test/it_dbi.t
parent9c9154157004dca26456c6216ef939449fdae020 (diff)
downloaditools-99983d2d3ee03f24424d424ef6d8030ec55639d6.tar.gz
itools-99983d2d3ee03f24424d424ef6d8030ec55639d6.tar.bz2
itools-99983d2d3ee03f24424d424ef6d8030ec55639d6.zip
dont depend on order of results
Diffstat (limited to 'test/it_dbi.t')
-rwxr-xr-xtest/it_dbi.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/it_dbi.t b/test/it_dbi.t
index 42a230c..ca5b537 100755
--- a/test/it_dbi.t
+++ b/test/it_dbi.t
@@ -425,7 +425,7 @@ is($record->delete_untouched([ 'ID >' => 2 ]), [], 'delete_untouched with query'
is(allrecs(), '[{"ID":1,"foo":"A"},{"ID":2,"foo":"B"},{"ID":3,"foo":"c"}]', 'data after delete_untouched with query');
$record->upsert(['ID' => 3, 'foo' => "C"]);
-is($record->delete_untouched(), [1, 2], 'delete_untouched with query');
+is(it::sort($record->delete_untouched()), [1, 2], 'delete_untouched with query');
is(allrecs(), '[{"ID":3,"foo":"C"}]', 'data after delete_untouched with query');
$record->replace(['ID' => 4, 'foo' => "C"]);