diff options
author | Nathan Gass | 2020-09-03 11:21:52 +0200 |
---|---|---|
committer | Nathan Gass | 2020-09-03 11:21:52 +0200 |
commit | 99983d2d3ee03f24424d424ef6d8030ec55639d6 (patch) | |
tree | d9edb83a19af614519f3c9e144b6c5d69c734392 | |
parent | 9c9154157004dca26456c6216ef939449fdae020 (diff) | |
download | itools-99983d2d3ee03f24424d424ef6d8030ec55639d6.tar.gz itools-99983d2d3ee03f24424d424ef6d8030ec55639d6.tar.bz2 itools-99983d2d3ee03f24424d424ef6d8030ec55639d6.zip |
dont depend on order of results
-rwxr-xr-x | test/it_dbi.t | 2 |
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"]); |