daemonUnixTime returns the current time on the daemon host with nanoseconds precision. It return the time formatted how the client sends timestamps to the server.
(t *testing.T)
| 212 | // daemonUnixTime returns the current time on the daemon host with nanoseconds precision. |
| 213 | // It return the time formatted how the client sends timestamps to the server. |
| 214 | func daemonUnixTime(t *testing.T) string { |
| 215 | t.Helper() |
| 216 | dt := daemonTime(t) |
| 217 | return fmt.Sprintf("%d.%09d", dt.Unix(), int64(dt.Nanosecond())) |
| 218 | } |
| 219 | |
| 220 | // appendBaseEnv appends the minimum set of environment variables to exec the |
| 221 | // docker cli binary for testing with correct configuration to the given env |
no test coverage detected
searching dependent graphs…