Comcast / plax

A test automation engine for messaging systems
Apache License 2.0
7 stars 14 forks source link

Recv not respecting topic #111

Closed jsccast closed 3 years ago

jsccast commented 3 years ago

Step recv isn't respecting topic property (when given).

Example: The following test fails because the recv on stderr sees "chips" written to stdout.

spec:
  phases:
    phase1:
      steps:
        - pub:
            chan: mother
            payload:
              make:
                name: cmd
                type: cmd
                config:
                  command: bash
                  args:
                    - '-c'
                    - 'echo tacos >&2; sleep 1; echo chips'
        - recv:
            chan: mother
            pattern:
              success: true
        - recv:
            serialization: string
            topic: stderr
            regexp: tacos
        - recv:
            serialization: string
            topic: stderr
            regexp: chips
            attempts: 1
            timeout: 1s
          fails: true
jsccast commented 3 years ago

Closed in #108.