Skip to content

Commit

Permalink
Workaround to accept positive .con
Browse files Browse the repository at this point in the history
  • Loading branch information
bmalinowsky committed Feb 15, 2016
1 parent 0370bbf commit 6ecdef9
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions test/tuwien/auto/calimero/knxnetip/KNXnetIPTunnelTest.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Calimero 2 - A library for KNX network access
Copyright (c) 2006, 2015 B. Malinowsky
Copyright (c) 2006, 2016 B. Malinowsky
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -178,21 +178,22 @@ public final void testSend() throws KNXException, InterruptedException
// the test expects a negative confirmation with the received L_Data.con
// the Calimero server always sends positive .con any frame, even if the group
// address is non-existing
doSend(frameNoDest, noblock, false);
final boolean posCon = true;
doSend(frameNoDest, noblock, posCon);
doSend(frame, ack, true);
doSend(frame2, con, true);

final long start = System.currentTimeMillis();
doSend(frameNoDest, con, false);
doSend(frameNoDest, con, false);
doSend(frameNoDest, con, false);
doSend(frameNoDest, con, false);
doSend(frameNoDest, con, false);
doSend(frameNoDest, con, false);
doSend(frameNoDest, con, false);
doSend(frameNoDest, con, false);
doSend(frameNoDest, con, false);
doSend(frameNoDest, con, false);
doSend(frameNoDest, con, posCon);
doSend(frameNoDest, con, posCon);
doSend(frameNoDest, con, posCon);
doSend(frameNoDest, con, posCon);
doSend(frameNoDest, con, posCon);
doSend(frameNoDest, con, posCon);
doSend(frameNoDest, con, posCon);
doSend(frameNoDest, con, posCon);
doSend(frameNoDest, con, posCon);
doSend(frameNoDest, con, posCon);
final long end = System.currentTimeMillis();
System.out.println("time for 10 send with con: " + (end - start));
}
Expand Down

0 comments on commit 6ecdef9

Please sign in to comment.