-
Notifications
You must be signed in to change notification settings - Fork 888
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added syncpointspec.json tests to RTDB #6678
Conversation
|
Size Report 1Affected Products
Test Logs |
Size Analysis Report 1Affected Products
Test Logs |
} | ||
} | ||
|
||
function patchFakeAuthFunctions(app: FirebaseApp) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See if this is needed
const registrations = {}; | ||
|
||
for (let i = 0; i < testSpec.steps.length; ++i) { | ||
const spec = unsafeClone(testSpec.steps[i]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a TODO to not clone this and create a separate object that deals with its own concerns
*/ | ||
|
||
import { SyncPointTestParser } from './helpers/syncpoint-util'; | ||
import syncPointSpecs from './helpers/syncPointSpec.json'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eventually, we should split this up and support multiple specs
|
||
matches(otherEventRegistration: EventRegistration) { | ||
if (otherEventRegistration instanceof TestEventRegistration) { | ||
// TODO(mtewas unknown as TestEventRegistration rit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete
const eventFn = | ||
actualEventData.eventRegistration.getEventRunner(actualEventData); | ||
eventFn(); | ||
console.log(currentSpec); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete this
private syncTree_: SyncTree; | ||
constructor() { | ||
this.app = initializeApp( | ||
{ databaseURL: 'http://tests.fblocal.com:9000' }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like these run against an emulator. For the future, it'd be nice if we could point them at prod/staging as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after nits discussed in-person are addressed.
No description provided.