summaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2013-03-26 10:51:50 +0200
committerVaadin Code Review <review@vaadin.com>2013-04-02 10:25:58 +0000
commitcbd3badb929e0253a44ae19464b6dd0caebca968 (patch)
treeec37cf18c901e36b106a3159e3266de7328cedac /uitest
parent6323e6e3f15c039d51f084436461e0be52b2acb9 (diff)
downloadvaadin-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.java7
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();
}
};