From 20544e603c8302d76e907dbb7e5fc9219c8f2a4b Mon Sep 17 00:00:00 2001 From: "Hyang-Ah (Hana) Kim" Date: Wed, 4 Mar 2015 17:54:55 -0500 Subject: [PATCH] bind/java/SeqTest: call Go.init from the test case constructor. Go.init must be called once and from the main thread. setUp is called from a non-main thread and once per each test. Change-Id: I848a1461793463785b38141e077da5bf5e53cb4c Reviewed-on: https://go-review.googlesource.com/6832 Reviewed-by: David Crawshaw --- bind/java/SeqTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bind/java/SeqTest.java b/bind/java/SeqTest.java index bbe0d5c..55467d3 100644 --- a/bind/java/SeqTest.java +++ b/bind/java/SeqTest.java @@ -9,8 +9,7 @@ import java.util.Random; import go.testpkg.Testpkg; public class SeqTest extends AndroidTestCase { - protected void setUp() throws Exception { - super.setUp(); + public SeqTest() { Go.init(this.getContext()); }