mirror of
https://github.com/absmach/supermq.git
synced 2026-06-23 07:10:19 +00:00
eb881690c7
Signed-off-by: 1998-felix <felix.gateru@gmail.com> Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com> Signed-off-by: Felix Gateru <felix.gateru@gmail.com> Signed-off-by: Arvindh <arvindh91@gmail.com> Co-authored-by: Felix Gateru <felix.gateru@gmail.com> Co-authored-by: Arvindh <arvindh91@gmail.com> Co-authored-by: Arvindh <30824765+arvindh123@users.noreply.github.com>
25 lines
347 B
Go
25 lines
347 B
Go
// Copyright (c) Abstract Machines
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package token_test
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/absmach/magistrala/auth/mocks"
|
|
)
|
|
|
|
var svc *mocks.Service
|
|
|
|
func TestMain(m *testing.M) {
|
|
svc = new(mocks.Service)
|
|
server := startGRPCServer(svc, port)
|
|
|
|
code := m.Run()
|
|
|
|
server.GracefulStop()
|
|
|
|
os.Exit(code)
|
|
}
|