Browse Source
Merge pull request #15159 from smatvienko-tb/fix/lwm2m-fw-update-execute-response-race
fix test: delay LwM2M FW client stop to prevent Execute response race
pull/15197/head
Viacheslav Klimov
3 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
application/src/test/java/org/thingsboard/server/transport/lwm2m/client/FwLwM2MDevice.java
|
|
|
@ -193,7 +193,7 @@ public class FwLwM2MDevice extends BaseInstanceEnabler implements Destroyable { |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("Error during firmware update", e); |
|
|
|
} |
|
|
|
}, 0, TimeUnit.SECONDS); // start immediately, without further delay
|
|
|
|
}, 1, TimeUnit.SECONDS); // delay 1 sec to allow CoAP Execute response to be delivered before client stops
|
|
|
|
} |
|
|
|
|
|
|
|
protected void setLeshanClient(LeshanClient leshanClient) { |
|
|
|
|