Skip to content

Commit fa6f772

Browse files
authored
Merge pull request eclipse-che#2319 from garagatyi/fixTests
Fix occasionally failing tests
2 parents d4de1d9 + 8de54d7 commit fa6f772

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • wsmaster/che-core-api-workspace/src/test/java/org/eclipse/che/api/workspace/server/stack

wsmaster/che-core-api-workspace/src/test/java/org/eclipse/che/api/workspace/server/stack/StackServiceTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
import org.mockito.InjectMocks;
4242
import org.mockito.Mock;
4343
import org.mockito.testng.MockitoTestNGListener;
44-
import org.testng.annotations.BeforeClass;
4544
import org.testng.annotations.BeforeMethod;
4645
import org.testng.annotations.Listeners;
4746
import org.testng.annotations.Test;
@@ -136,7 +135,7 @@ public class StackServiceTest {
136135
@InjectMocks
137136
StackService service;
138137

139-
@BeforeClass
138+
@BeforeMethod
140139
public void setUp() throws IOException, ConflictException {
141140
byte[] fileContent = STACK_ID.getBytes();
142141
stackIcon = new StackIcon(ICON_MEDIA_TYPE, "image/svg+xml", fileContent);

0 commit comments

Comments
 (0)