File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/test/java/org/purejava Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 19
19
public class UnlockedDatabaseTest {
20
20
private static final Logger log = LoggerFactory .getLogger (UnlockedDatabaseTest .class );
21
21
22
- private KeepassProxyAccess kpa = new KeepassProxyAccess ();
22
+ private final KeepassProxyAccess kpa = new KeepassProxyAccess ();
23
23
24
24
@ Test
25
25
@ Order (3 )
26
26
@ DisplayName ("Testing KeePassXC proxy functionality" )
27
- public void shouldHaveNoErrors () {
28
- log .info ("Please enter a name for the connection in the pop-up" );
27
+ public void shouldHaveNoErrors () throws InterruptedException {
28
+ log .info ("Please enter a name for the connection in the pop-up within 10 seconds " );
29
29
assertTrue (kpa .connect ());
30
30
assertTrue (kpa .associate ());
31
+ // TODO:
32
+ // Revert after Qt bug is fixed
33
+ // This compensates throwing a KeepassProxyAccessException in Connection#associate()
34
+ Thread .sleep (10000L ); // give me 10 seconds to enter a associate id
31
35
assertTrue (null != kpa .getDatabasehash () && !kpa .getDatabasehash ().isEmpty ());
32
36
assertTrue (kpa .testAssociate (kpa .getAssociateId (), kpa .getIdKeyPairPublicKey ()));
33
37
log .info ("Please allow access to credentials" );
You can’t perform that action at this time.
0 commit comments