Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
98497a1
commit b8af3d6
Showing
33 changed files
with
709 additions
and
695 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package gochannel_test | ||
|
||
import ( | ||
"testing" | ||
"time" | ||
|
||
"github.com/ThreeDotsLabs/watermill" | ||
|
||
"github.com/ThreeDotsLabs/watermill/message/infrastructure/gochannel" | ||
|
||
"github.com/ThreeDotsLabs/watermill/message" | ||
"github.com/ThreeDotsLabs/watermill/message/infrastructure" | ||
) | ||
|
||
func createPubSub(t *testing.T) message.PubSub { | ||
return gochannel.NewGoChannel( | ||
0, | ||
watermill.NewStdLogger(true, true), | ||
time.Second*10, | ||
) | ||
} | ||
|
||
func TestPublishSubscribe(t *testing.T) { | ||
infrastructure.TestPubSub( | ||
t, | ||
infrastructure.Features{ | ||
ConsumerGroups: false, | ||
ExactlyOnceDelivery: true, | ||
GuaranteedOrder: true, | ||
Persistent: false, | ||
RequireSingleInstance: true, | ||
}, | ||
createPubSub, | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.