Skip to content

Conversation

JorikSchellekens
Copy link
Contributor

@erikjohnston
Copy link
Member

The tests are broadly good, but the problem with killing one of the servers is that they are used for the entire test run, rather than being set up for each test. I think a good alternative here is to use the sytest server implementation and then we can simulate the server "going down" by having it return e.g. a 503.

@JorikSchellekens
Copy link
Contributor Author

The server is restarted at the end. Does the sytest server implementation emulate users actions such as joining rooms and uploading keys? Otherwise this test requires a lot of mocking.

@erikjohnston
Copy link
Member

Does the sytest server implementation emulate users actions such as joining rooms and uploading keys? Otherwise this test requires a lot of mocking.

Yup, look in test/50federation/ which all use the perl sytest federation thing.

@JorikSchellekens
Copy link
Contributor Author

I've changed it over to the sytest federation server

Copy link
Member

@erikjohnston erikjohnston left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just needs a bit of tidying up

@erikjohnston erikjohnston self-requested a review July 29, 2019 13:51
Copy link
Member

@erikjohnston erikjohnston left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@JorikSchellekens JorikSchellekens merged commit 14f8dd7 into develop Jul 29, 2019
@JorikSchellekens JorikSchellekens deleted the joriks/uisi_test branch July 29, 2019 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants