2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-10-22 22:06:12 +08:00

Update base.DecodeMessage to take byte slice

This commit is contained in:
Ken Hibino
2021-03-02 22:14:55 -08:00
parent e408550d76
commit 9ac0475d4b
4 changed files with 8 additions and 9 deletions

View File

@@ -140,7 +140,7 @@ func MustMarshal(tb testing.TB, msg *base.TaskMessage) string {
// Calling test will fail if unmarshaling errors out.
func MustUnmarshal(tb testing.TB, data string) *base.TaskMessage {
tb.Helper()
msg, err := base.DecodeMessage(data)
msg, err := base.DecodeMessage([]byte(data))
if err != nil {
tb.Fatal(err)
}