anchor.diff:      %% for the message to arrive.
       T1 = ts(),
       ok = gen_tcp:close(Socket),
  -    LastWillPub = packetv5:gen_publish(WillTopic, 0, WillMsg, #{}),
  -    {ok, LastWillPub, <<>>} = packetv5:expect_frame(SubSocket, LastWillPub),
  +    LastWillPub = packetv5:gen_publish(WillTopic, 0, WillMsg, []),
  +    ok = packetv5:expect_frame(SubSocket, LastWillPub),
       T2 = ts(),
       assert_ge(T2 - T1, WillDelay*1000),
       disable_on_publish(),
  
positive.code: end_per_group(_, _Config) ->
      ok.
  
  init_per_testcase(will_delay_v5_test, _) ->
      {skip, "will delay feature not yet implemented"};
  init_per_testcase(_Case, Config) ->
      Config.
  
  
negative.code:     {ok, SubSocket} = packetv5:do_client_connect(SubConnect, Connack, []),
      ok = gen_tcp:send(SubSocket, Subscribe),
      SubAck = packetv5:gen_suback(53, [0], #{}),
      ok = packetv5:expect_frame(SubSocket, SubAck),
  
      %% connect client with delayed last will
      WillMsg = <<"delayed_msg">>,
  