Skip to content

More thorough testing mode #1215

Open
Open

Description

@PeterSurda

Instead of just sleeping for 30 seconds before shutdown, the testing mode should:

  • create a new random address
  • send a message from that address to a testing address (TBD)
  • wait until the ACK arrives (UISignaller queue can be used for this)
  • show synchronisation progress and connection status every 10 seconds
  • wait until synchronisation finishes
  • change test mode description to explain it's for developers rather than end users

Activity

  1. added
    developersThe issue is relevant mainly for developers rather than users
    on Apr 9, 2018
  2. g1itch commented on Apr 9, 2018

    @g1itch
    Collaborator

    Agreed. As I wrote before, I'm in process of transforming that 30 sec timeout into 30 sec since last API command (after synchronization finish - with your elaboration). Basic testing I've planned to implement trough API commands (address creation, message sending). That's why I'm doing cleanup of the api module.

  3. PeterSurda commented on Apr 9, 2018

    @PeterSurda
    MemberAuthor

    I think there should be a separate API test.

  4. g1itch commented on Apr 10, 2018

    @g1itch
    Collaborator

    With API at least I understand how to implement such tests. You can check the first results in my branch test-mode. Otherwise the tests should apparently be asynchronous and will probably require sophisticated testing lib...

  5. PeterSurda commented on Apr 10, 2018

    @PeterSurda
    MemberAuthor

    You can run the tests in the main thread (which normally runs the GUI and in the daemon mode does nothing). As for getting feedback, you just do a non-blocking get on the relevant queues (e.g. the ui signaller queue and address generator return queue) with a small timeout. It shouldn't be very difficult.

  6. added this to the v0.7.0 milestone on Aug 27, 2020
  7. pinned this issue on Jun 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    developersThe issue is relevant mainly for developers rather than usersenhancementNew featuretest

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions