File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
powertools-e2e-tests/src/test/java/software/amazon/lambda/powertools Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 10
10
11
11
import java .time .Year ;
12
12
import java .util .Collections ;
13
+ import java .util .UUID ;
13
14
import java .util .concurrent .TimeUnit ;
14
15
15
16
import static software .amazon .lambda .powertools .testutils .lambda .LambdaInvoker .invokeFunction ;
@@ -21,11 +22,12 @@ public class IdempotencyE2ET {
21
22
@ BeforeAll
22
23
@ Timeout (value = 5 , unit = TimeUnit .MINUTES )
23
24
public static void setup () {
25
+ String random = UUID .randomUUID ().toString ().substring (0 , 6 );
24
26
infrastructure = Infrastructure .builder ()
25
27
.testName (IdempotencyE2ET .class .getSimpleName ())
26
28
.pathToFunction ("idempotency" )
27
- .idempotencyTable ("idempo" )
28
- .environmentVariables (Collections .singletonMap ("IDEMPOTENCY_TABLE" , "idempo" ))
29
+ .idempotencyTable ("idempo" + random )
30
+ .environmentVariables (Collections .singletonMap ("IDEMPOTENCY_TABLE" , "idempo" + random ))
29
31
.build ();
30
32
functionName = infrastructure .deploy ();
31
33
}
You can’t perform that action at this time.
0 commit comments