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)
44
44
CREATE INDEX IF NOT EXISTS idx_tags_key ON tags(key);
45
45
CREATE INDEX IF NOT EXISTS idx_tags_tag ON tags(tag);
46
46
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);
48
48
CREATE INDEX IF NOT EXISTS idx_priorities_priority ON priorities(priority);
49
49
' );
50
50
}
Original file line number Diff line number Diff line change @@ -242,13 +242,16 @@ abstract class IJournalTestCase extends Tester\TestCase
242
242
final public function testDuplicatedDifferentPriorities ()
243
243
{
244
244
$ this ->journal ->write ('ok_test_bb ' , [
245
- Cache::PRIORITY => 15
245
+ Cache::PRIORITY => 10
246
246
]);
247
247
248
248
$ this ->journal ->write ('ok_test_bb ' , [
249
249
Cache::PRIORITY => 20
250
250
]);
251
251
252
+ Assert::same ([
253
+ ], $ this ->journal ->clean ([Cache::PRIORITY => 15 ]));
254
+
252
255
Assert::same ([
253
256
'ok_test_bb ' ,
254
257
], $ this ->journal ->clean ([Cache::PRIORITY => 30 ]));
You can’t perform that action at this time.
0 commit comments