Ensure MQTT_CMD_SUBACK is received before calling mg_mqtt_pub in tests

This commit is contained in:
James Hilliard committed 2022-04-07 19:11:51 -06:00
1 parent a1ec179229
commit e4ab9a4130
3 files changed
+42 -8

No files matched your search

+1 -1
View File
@@ -111,7 +111,7 @@ uint64_t mg_millis(void) {
#endif
return ((uint64_t) ts.tv_sec * 1000 + (uint64_t) ts.tv_nsec / 1000000);
#else
return time(NULL) * 1000;
return (uint64_t) (time(NULL) * 1000);
#endif
}
#endif