diff options
author | Artur Signell <artur@vaadin.com> | 2013-03-26 10:51:50 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-04-02 10:25:58 +0000 |
commit | cbd3badb929e0253a44ae19464b6dd0caebca968 (patch) | |
tree | ec37cf18c901e36b106a3159e3266de7328cedac /uitest | |
parent | 6323e6e3f15c039d51f084436461e0be52b2acb9 (diff) | |
download | vaadin-framework-cbd3badb929e0253a44ae19464b6dd0caebca968.tar.gz vaadin-framework-cbd3badb929e0253a44ae19464b6dd0caebca968.zip |
Fixed locking issue in tests
Change-Id: I3706cfa46f82615b8cc677bcaaa207d5ab05bf40
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/src/com/vaadin/tests/application/ThreadLocalInstances.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/uitest/src/com/vaadin/tests/application/ThreadLocalInstances.java b/uitest/src/com/vaadin/tests/application/ThreadLocalInstances.java index b6774ae56a..ed611117d0 100644 --- a/uitest/src/com/vaadin/tests/application/ThreadLocalInstances.java +++ b/uitest/src/com/vaadin/tests/application/ThreadLocalInstances.java @@ -52,7 +52,12 @@ public class ThreadLocalInstances extends AbstractTestCase { private final FlagSeResource resource = new FlagSeResource() { @Override public DownloadStream getStream() { - reportCurrentStatus("resource handler"); + ThreadLocalInstances.this.getContext().lock(); + try { + reportCurrentStatus("resource handler"); + } finally { + ThreadLocalInstances.this.getContext().unlock(); + } return super.getStream(); } }; |