Skip to content

drillDown test failures correlated with advance to super commit 5163d68 #3210

@philrz

Description

@philrz

The app has had its super dependency stuck at commit 79bb8e3 because once it advances to 5163d68 (associated with the changes in brimdata/super#6263) or newer, yarn test has the following failures:

        FAIL  src/js/models/program.test.ts
         ● drill down › when there is no leading filter
       
           expect(received).toBe(expected) // Object.is equality
       
           Expected: "this[\"i d\"][\"orig h\"]==192.168.0.54"
           Received: ""
       
             68 |   test("when there is no leading filter", async () => {
             69 |     const script = await run(result, 'count() by this["i d"]["orig h"]')
           > 70 |     expect(script).toBe('this["i d"]["orig h"]==192.168.0.54')
                |                    ^
             71 |   })
             72 |
             73 |   test("when there is a sort on there", async () => {
       
             at Object.toBe (src/js/models/program.test.ts:70:20)
       
         ● drill down › combines keys in the group by proc
       
           expect(received).toBe(expected) // Object.is equality
       
           Expected: "_path==\"dns\" | id.orig_h==192.168.0.54 proto==\"udp\" query==\"WPAD\""
           Received: "_path==\"dns\" | proto==\"udp\" query==\"WPAD\""
       
              97 |     )
              98 |
           >  99 |     expect(script).toBe(
                 |                    ^
             100 |       '_path=="dns" | id.orig_h==192.168.0.54 proto=="udp" query=="WPAD"'
             101 |     )
             102 |   })
       
             at Object.toBe (src/js/models/program.test.ts:99:20)

I've hacked at this a bit and I have some sense of what's going on, so I'll add a comment with more details.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions