Skip to content

Commit

Permalink
Fill out the test a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
walles committed Jul 17, 2024
1 parent cec3daa commit 25c7962
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions twin/screen_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,13 @@ func TestInterruptableReader_blockedOnRead(t *testing.T) {
// Give the reader thread some time to start waiting
time.Sleep(100 * time.Millisecond)

// Ensure the reader is not done, it should be blocked on the read()
select {
case <-readResultChan:
t.Fatal("Reader should not be done yet")
default:
}

// Interrupt the reader
testMe.Interrupt()

Expand Down

0 comments on commit 25c7962

Please sign in to comment.