commit | 37d1ece13fa3de40d396ad0d593d4afedcabe0d8 | [log] [tgz] |
---|---|---|
author | Kir Kolyshkin <kolyshkin@gmail.com> | Mon Feb 07 21:53:03 2022 |
committer | Kir Kolyshkin <kolyshkin@gmail.com> | Tue Mar 01 01:32:55 2022 |
tree | 0785f8473ae11f02deb2a8b333e3c52ef9d07a7e | |
parent | a7e262cecc632fb1aff83209467051306def7954 [diff] |
tests: fix calling Fatal from non-main goroutine This fixes warnings reported by govet and staticcheck linters: conn_test.go:659:2: SA2002: the goroutine calls T.Fatal, which must be called in the same goroutine as the test (staticcheck) go func() { ^ conn_test.go:663:5: SA2002(related information): call to T.Fatal (staticcheck) b.Fatal(v.Err) ^ server_interfaces_test.go:473:2: SA2002: the goroutine calls T.Fatal, which must be called in the same goroutine as the test (staticcheck) go func() { ^ server_interfaces_test.go:476:4: SA2002(related information): call to T.Fatal (staticcheck) t.Fatal(err) ^ [kir@kir-rhat dbus]$ golangci-lint run --disable-all -E govet conn_test.go:663:5: testinggoroutine: call to (*B).Fatal from a non-test goroutine (govet) b.Fatal(v.Err) ^ server_interfaces_test.go:476:4: testinggoroutine: call to (*T).Fatal from a non-test goroutine (govet) t.Fatal(err) ^ Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
dbus is a simple library that implements native Go client bindings for the D-Bus message bus system.
This packages requires Go 1.12 or later. It can be installed by running the command below:
go get github.com/godbus/dbus/v5
The complete package documentation and some simple examples are available at godoc.org. Also, the _examples directory gives a short overview over the basic usage.
Please note that the API is considered unstable for now and may change without further notice.
go.dbus is available under the Simplified BSD License; see LICENSE for the full text.
Nearly all of the credit for this library goes to github.com/guelfey/go.dbus.