Skip to content

Commit aa4d7e2

Browse files
committed
comment out invalid sequence token testset because InvalidSequenceToken errors are no longer a thins
1 parent 1ab8885 commit aa4d7e2

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

test/online.jl

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -263,21 +263,23 @@
263263
@test_throws LOGGER LogSubmissionException submit_logs(stream, events)
264264
end
265265

266-
@testset "Invalid sequence token" begin
267-
stream = CloudWatchLogStream(
268-
CFG,
269-
TEST_LOG_GROUP,
270-
create_stream(CFG, TEST_LOG_GROUP, new_stream("invalid_token")),
271-
)
272-
273-
@test submit_log(stream, LogEvent("Foo")) == 1
274-
CloudWatchLogs.update_sequence_token!(stream, "oops_invalid")
275-
setlevel!(LOGGER, "debug") do
276-
@test_log LOGGER "debug" "InvalidSequenceTokenException" begin
277-
submit_log(stream, LogEvent("Second time's the charm"))
278-
end
279-
end
280-
end
266+
# InvalidSequenceToken errors are no longer a thing:
267+
# - https://github.com/invenia/CloudWatchLogs.jl/issues/45
268+
# @testset "Invalid sequence token" begin
269+
# stream = CloudWatchLogStream(
270+
# CFG,
271+
# TEST_LOG_GROUP,
272+
# create_stream(CFG, TEST_LOG_GROUP, new_stream("invalid_token")),
273+
# )
274+
275+
# @test submit_log(stream, LogEvent("Foo")) == 1
276+
# CloudWatchLogs.update_sequence_token!(stream, "oops_invalid")
277+
# setlevel!(LOGGER, "debug") do
278+
# @test_log LOGGER "debug" "InvalidSequenceTokenException" begin
279+
# submit_log(stream, LogEvent("Second time's the charm"))
280+
# end
281+
# end
282+
# end
281283

282284
@testset "Unsorted logs" begin
283285
stream_name = new_stream("unsorted")

0 commit comments

Comments
 (0)