Skip to content

v0.4.0

Latest

Choose a tag to compare

@github-actions github-actions released this 24 Nov 12:01
· 20 commits to main since this release
9fa7738

Migrating from 0.3.0

  • Public histories are now read-only views, not lists. Examples are network.dns.asked, broker.messages, network.link_changes and board.boots. A saved reference sees records added later, which restores the behavior lost in 0.3.0. Code that appended to, cleared or replaced a public history must use the service's API instead. Take a private snapshot with list(history) or history[:] where a test needs a list that does not change, for example before writing it to JSON. Slices return lists. Iteration visits the records present when it began. Query methods such as broker.find_messages() and console.lines() still return a new list at each call. #325

Highlights

  • broker.received_packets and broker.next_received_packet(kind, client_id=...) record every complete MQTT control packet the broker reads, for example PINGREQ. Each packet carries the board time at which its last byte arrived, so a test can measure keepalive. #326
  • A Classic Bluetooth peer can hang up while it stays powered and in range: peer.disconnect() ends its ACL links with reason 0x13 and returns a condition for the end, as BleCentral.disconnect() does on LE. #330
  • The writing-tests guide now shows how to check that an event happened exactly once over an interval #324. It also says that every next_* condition starts at its call, including one made while the chip sleeps #329.

What's Changed

  • test(harness): check for repeat redials after a dropped call by @mateuszsikora in #324
  • fix(harness)!: expose live read-only history views by @mateuszsikora in #325
  • feat(harness): record received MQTT control packets by @mateuszsikora in #326
  • docs(harness): say every next_* condition starts at its call by @mateuszsikora in #329
  • feat(harness): let a Classic peer end its links with disconnect() by @mateuszsikora in #330
  • build: prepare release 0.4.0 by @github-actions[bot] in #331

Full Changelog: v0.3.0...v0.4.0