File tree 1 file changed +14
-18
lines changed
it-tests/java-tests/src/test/java/com/intergral/deep/tests/it/java
1 file changed +14
-18
lines changed Original file line number Diff line number Diff line change @@ -37,34 +37,30 @@ void checkBPFires() throws Exception
37
37
.setCurrentHash ( "" )
38
38
.setResponseType ( ResponseType .UPDATE )
39
39
.addResponse ( TracePointConfig .newBuilder ()
40
- .setPath ( "BPTestTarget.java" ).setLineNumber ( 32 ).build () )
40
+ .setPath ( "BPTestTarget.java" ).setLineNumber ( 33 ).build () )
41
41
.build ();
42
42
onNext ( build );
43
43
44
44
grpcConnectLatch .await ( 1 , TimeUnit .MINUTES );
45
45
final AtomicBoolean hasTriggered = new AtomicBoolean ( false );
46
46
47
- new Thread ()
48
- {
49
- @ Override
50
- public void run ()
47
+ new Thread ( () -> {
48
+ while ( !hasTriggered .get () )
51
49
{
52
- while ( !hasTriggered .get () )
50
+ // if this line changes then the test will need changed below
51
+ final BPTestTarget checkBPFires = new BPTestTarget ( "checkBPFires" );
52
+ System .out .println ( checkBPFires .getName () );
53
+ try
53
54
{
54
- // if this line changes then the test will need changed below
55
- final BPTestTarget checkBPFires = new BPTestTarget ( "checkBPFires" );
56
- System .out .println ( checkBPFires .getName () );
57
- try
58
- {
59
- Thread .sleep ( 1000 );
60
- }
61
- catch ( InterruptedException e )
62
- {
63
- e .printStackTrace ();
64
- }
55
+ //noinspection BusyWait
56
+ Thread .sleep ( 1000 );
57
+ }
58
+ catch ( InterruptedException e )
59
+ {
60
+ e .printStackTrace ();
65
61
}
66
62
}
67
- }.start ();
63
+ } ) .start ();
68
64
69
65
snapshotlatch .await (5 , TimeUnit .MINUTES );
70
66
You can’t perform that action at this time.
0 commit comments