X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fobserve.t;h=7896be36861771d7e53a9c7fc3e8f0dcd6e09b83;hb=5ef4d923edc14eadf67d64e92001f2f7bfa63986;hp=8fbac7f9a2aee3a5af2fec643ca28eb1e6850fb8;hpb=734376d95c5cc96cc52cd0346d9691c32390e792;p=scpubgit%2FDKit.git diff --git a/t/observe.t b/t/observe.t index 8fbac7f..7896be3 100644 --- a/t/observe.t +++ b/t/observe.t @@ -82,7 +82,7 @@ my @path_status = ( my $path = $state->scope_var('P')->bound_value; $state->return_from_run( DX::ObservationRequired->new( - observation => sub { $paths{$path} = $observe_path{$path} }, + observer => sub { $paths{$path} = $observe_path{$path} }, resume => $state->then($self->next), ) ); @@ -113,7 +113,7 @@ my $or_state = make_state([ 'P', 'PS' ], my $ob_req = $or_state->run; -$ob_req->observation->(); +$ob_req->observer->(); { my $res = $ob_req->resume->run;