1010import java .io .IOException ;
1111import java .net .InetSocketAddress ;
1212import java .net .URI ;
13- import java .sql .Timestamp ;
1413import java .time .Duration ;
1514import java .time .Instant ;
1615import java .util .List ;
@@ -31,7 +30,6 @@ void basicScenarioTest() {
3130 final AtomicBoolean failed = new AtomicBoolean (false );
3231 withLocalServer (
3332 (headers , s ) -> {
34- System .out .println ("headers: " + headers );
3533 token .set (headers .get ("Authorization" ).get (0 ).replace ("Bearer " , "" ));
3634 body .set (Document .parse (s ));
3735 return 200 ;
@@ -43,7 +41,7 @@ void basicScenarioTest() {
4341 .setListener (error -> failed .set (true ))
4442 .build ();
4543 final RunaboutScenario scenario = new RunaboutScenario ("method" , "event00" , "dev" ,
46- Timestamp . from ( Instant .now ()), new JsonObjectImpl ().put ("key" , "value" ), List .of (
44+ Instant .now (). toString ( ), new JsonObjectImpl ().put ("key" , "value" ), List .of (
4745 new RunaboutInstance ("type" , "eval" , Set .of ("dep1" , "dep2" ))));
4846 api .ingestScenario (scenario );
4947 Awaitility .await ().atMost (Duration .ofSeconds (10 ))
@@ -65,7 +63,7 @@ void testFailedRequest() {
6563 .setListener (error -> failed .set (true ))
6664 .build ();
6765 final RunaboutScenario scenario = new RunaboutScenario ("method" , "event00" , "dev" ,
68- Timestamp . from ( Instant .now ()), new JsonObjectImpl ().put ("key" , "value" ), List .of (
66+ Instant .now (). toString ( ), new JsonObjectImpl ().put ("key" , "value" ), List .of (
6967 new RunaboutInstance ("type" , "eval" , Set .of ("dep1" , "dep2" ))));
7068 api .ingestScenario (scenario );
7169 Awaitility .await ().atMost (Duration .ofSeconds (10 ))
0 commit comments