Add a method to issue a request to a single usersession agent; besides
making the code more readable, this will come handy in those cases when
we already know the user ID we want to talk to.
The new API allows snapd to notify userd, in each session, about a
pending snap refresh. The notification carries the snap name and the
amount of time remaining, before a forced refresh occurs.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
* travis.yml: run unit tests with go/master as well
The unit tests of snapd are broken currently for golang-1.14. This
was observed on debian-sid. We did not catch this. To ensure we
get an early warning about failures with the latest go this PR
adds "master" to the go versions to run the unit tests against.
This commit also fixes the broken tests with 1.14
Use the new travis feature to run unit tests on arm64. This would
have caught the segfault in the rawstocketstopper code.
This also fixes two issues in usersession tests that fail often
in arm. One is the timeout of TestAgentTimeout that is not high
enough for slow arm systems for the "regular" case that should
not hit this timeout.
And then there is a "sleep 99999" in the mock for kdialog which
will cause travis to wait forever for this process to exit.