From 83fb9d7d9511369790a97cff03388db6870aed78 Mon Sep 17 00:00:00 2001 From: Vijay Menon Date: Tue, 4 Jun 2013 14:37:01 -0700 Subject: [PATCH] Fix tests to use new directory setter --- bin/test.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/test.dart b/bin/test.dart index de71ce4..1070c46 100644 --- a/bin/test.dart +++ b/bin/test.dart @@ -34,8 +34,8 @@ void main() { final options = new Options(); final vm = options.executable; final script = options.script; - Future dir = new File(script).directory().then((d) => d.path); - dir.then((path) => runTests(vm, '$path/..')); + String path = new File(script).directory.path; + runTests(vm, '$path/..'); } void runTests(String vm, String path) {