mirror of
https://github.com/AthanorLabs/atomic-swap.git
synced 2026-01-08 21:58:07 -05:00
18 lines
362 B
Go
18 lines
362 B
Go
// Copyright 2023 The AthanorLabs/atomic-swap Authors
|
|
// SPDX-License-Identifier: LGPL-3.0-only
|
|
|
|
package cliutil
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
logging "github.com/ipfs/go-log/v2"
|
|
)
|
|
|
|
func TestDaemon_signalHandler(_ *testing.T) {
|
|
ctx, cancel := context.WithCancel(context.Background())
|
|
defer cancel()
|
|
go SignalHandler(ctx, cancel, logging.Logger("test"))
|
|
}
|