Merge branch 'main' of git-ssh.tornberg.me:mats/go-cart-actor into test/net-pool
Some checks failed
Build and Publish / BuildAndDeploy (push) Successful in 2m28s
Build and Publish / BuildAndDeployAmd64 (push) Failing after 15m0s

This commit is contained in:
matst80
2024-11-21 21:44:04 +01:00
2 changed files with 5 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
package main
import (
"fmt"
"net"
"testing"
@@ -32,8 +33,7 @@ func TestGenericConnection(t *testing.T) {
return nil
})
listener.AddHandler(3, func(input *FrameWithPayload, resultChan chan<- FrameWithPayload) error {
resultChan <- MakeFrameWithPayload(2, 200, datta)
return nil //fmt.Errorf("Error")
return fmt.Errorf("Error in custom handler")
})
r, err := conn.Call(1, datta)
if err != nil {