Closed phughk closed 1 year ago
We want to verify the driver can make requests concurrently. We need a test that follows this pattern
conn = openConnection() chan response = blaa // cant remember syntax go func() { response << "Starting sleep" _, err = conn.Execute("sleep 5") suite.Require().NoError(err) response << "All good, sleep finished" } waitForStart << response // I should probably learn the syntax start = time.Now() _, err = conn.Update(doSomeUpdate()) end = time.Now() suite.Require().NoError(err) suite.Require().LessThan(end-start, Duration.Second(2)) completed << response // still haven't googled completeTime = time.Now() suite.Require().MoreThan(completed-start, Duration.Second(5))
Assigning to me, but if anyone would like to take this on the please comment or flag. I am not starting this immediately
We want to verify the driver can make requests concurrently. We need a test that follows this pattern