From 228b413ef07eed75fc1dd3c4f37dec931ce004f0 Mon Sep 17 00:00:00 2001 From: thosakwe Date: Tue, 21 Feb 2017 22:34:50 -0500 Subject: [PATCH] Better bootstrap --- test/bootstrap.dart | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test/bootstrap.dart b/test/bootstrap.dart index 01e9454e..5186437d 100644 --- a/test/bootstrap.dart +++ b/test/bootstrap.dart @@ -1,7 +1,11 @@ +import 'dart:io'; import 'package:rethinkdb_driver/rethinkdb_driver.dart'; main() async { var r = new Rethinkdb(); - var conn = await r.connect(); - await r.tableCreate('todos').run(conn); -} \ No newline at end of file + r.connect().then((conn) { + r.tableCreate('todos').run(conn); + print('Done'); + exit(0); + }); +}