 IN: concurrency.flags.tests
 USING: tools.test concurrency.flags concurrency.combinators
-kernel threads locals ;
+kernel threads locals accessors ;
 
 :: flag-test-1 ( -- )
     [let | f [ <flag> ] |
         [ f raise-flag ] "Flag test" spawn drop
         f lower-flag
-        f flag-value?
+        f value>>
     ] ;
 
 [ f ] [ flag-test-1 ] unit-test

    [let | f [ <flag> ] |
        [ 1000 sleep f raise-flag ] "Flag test" spawn drop
        f wait-for-flag
        f flag-value?
    ] ;

[ t ] [ flag-test-5 ] unit-test

    [let | f [ <flag> ] |
        [ 1000 sleep f raise-flag ] "Flag test" spawn drop
        f lower-flag
        f value>>
    ] ;

[ f ] [ flag-test-2 ] unit-test
