From d23ae592b8b2f659a415e6cb96d27e0d20d8f638 Mon Sep 17 00:00:00 2001 From: castaneai Date: Fri, 22 Dec 2023 16:47:59 +0900 Subject: [PATCH] docs: update --- README.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 3af879a..f92b2d4 100644 --- a/README.md +++ b/README.md @@ -77,16 +77,19 @@ See [examples/integration_test](./examples/integration_test/integration_test.go) package xxx_test import ( - "testing" - - "github.com/castaneai/minimatch" + "open-match.dev/open-match/pkg/pb" + "testing" + + "github.com/castaneai/minimatch" ) func TestSimpleMatch(t *testing.T) { - s := minimatch.RunTestServer(t, profile, minimatch.MatchFunctionFunc(MakeMatches), minimatch.AssignerFunc(AssignGameServer)) - frontend := s.DialFrontend(t) + s := minimatch.RunTestServer(t, map[*pb.MatchProfile]minimatch.MatchFunction{ + profile: minimatch.MatchFunctionFunc(MakeMatches), + }, minimatch.AssignerFunc(AssignGameServer)) + frontend := s.DialFrontend(t) - // ... + // ... } ```