File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public function __construct($path = ':memory:')
4444 CREATE INDEX IF NOT EXISTS idx_tags_key ON tags(key);
4545 CREATE INDEX IF NOT EXISTS idx_tags_tag ON tags(tag);
4646 CREATE UNIQUE INDEX IF NOT EXISTS idx_tags_key_tag ON tags(key, tag);
47- CREATE INDEX IF NOT EXISTS idx_priorities_key ON priorities(key);
47+ CREATE UNIQUE INDEX IF NOT EXISTS idx_priorities_key ON priorities(key);
4848 CREATE INDEX IF NOT EXISTS idx_priorities_priority ON priorities(priority);
4949 ' );
5050 }
Original file line number Diff line number Diff line change @@ -242,13 +242,16 @@ abstract class IJournalTestCase extends Tester\TestCase
242242 final public function testDuplicatedDifferentPriorities ()
243243 {
244244 $ this ->journal ->write ('ok_test_bb ' , [
245- Cache::PRIORITY => 15
245+ Cache::PRIORITY => 10
246246 ]);
247247
248248 $ this ->journal ->write ('ok_test_bb ' , [
249249 Cache::PRIORITY => 20
250250 ]);
251251
252+ Assert::same ([
253+ ], $ this ->journal ->clean ([Cache::PRIORITY => 15 ]));
254+
252255 Assert::same ([
253256 'ok_test_bb ' ,
254257 ], $ this ->journal ->clean ([Cache::PRIORITY => 30 ]));
You can’t perform that action at this time.
0 commit comments