1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
From: Mathias Gibbens <gibmat@debian.org>
Description: Somewhere there's a race condition between setting up the manager and logging in. Adding a small sleep seems to paper over that for now. Due to the version of this library in Debian being so out of date, I haven't created an issue upstream.
Forwarded: not-needed
diff --git a/session/keepalive/example_test.go b/session/keepalive/example_test.go
index cf6b865..221fe15 100644
--- a/session/keepalive/example_test.go
+++ b/session/keepalive/example_test.go
@@ -44,6 +44,8 @@ func ExampleHandlerSOAP() {
// No need for initial Login() here as simulator.Run already has
m := session.NewManager(c)
+ time.Sleep(100 * time.Millisecond)
+
// check twice if session is valid, sleeping > SessionIdleTimeout in between
check := func() {
for i := 0; i < 2; i++ {
|