diff options
author | Loïc Hoguin <[email protected]> | 2018-08-06 15:22:18 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-08-06 15:22:18 +0200 |
commit | 659346142edb460f94f01658bea3c2b91fa14bde (patch) | |
tree | 94ebb0966539dba07c0bed476b8af4d0c7107dbb /test/handlers/sse_clock_h.erl | |
parent | 29d347bf5bed001ae8d8763e6af53950c190de40 (diff) | |
download | gun-659346142edb460f94f01658bea3c2b91fa14bde.tar.gz gun-659346142edb460f94f01658bea3c2b91fa14bde.tar.bz2 gun-659346142edb460f94f01658bea3c2b91fa14bde.zip |
Make sse_SUITE work for older OTP versions
Diffstat (limited to 'test/handlers/sse_clock_h.erl')
-rw-r--r-- | test/handlers/sse_clock_h.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/handlers/sse_clock_h.erl b/test/handlers/sse_clock_h.erl index 23b834f..8c18ac5 100644 --- a/test/handlers/sse_clock_h.erl +++ b/test/handlers/sse_clock_h.erl @@ -14,8 +14,7 @@ init(Req, State) -> info(timeout, Req, State) -> erlang:send_after(1000, self(), timeout), - Time = calendar:system_time_to_rfc3339(erlang:system_time(second)), cowboy_req:stream_events(#{ - data => Time + data => cowboy_clock:rfc1123() }, nofin, Req), {ok, Req, State}. |