commit | 4637b80655f2308313e7740396ae24d1e53f70e6 | [log] [tgz] |
---|---|---|
author | Ole Rehmsen <oler@google.com> | Thu Feb 04 13:28:16 2021 +0100 |
committer | Ole Rehmsen <oler@google.com> | Thu Feb 04 13:54:07 2021 +0100 |
tree | 5f729dfdd21d5c8821626d8c4f3ab45d1991218f | |
parent | 90d9d096f44a3ee738bf48a5d45372f638b50fa1 [diff] |
Fix tests respecting the loggedIn value It turns out none of the current tests depend on whether the user is logged in, so there is no need for an extra suite for that. I am about to add some tests that do depend on being logged in, so I will add a suite for them. The login value is only assigned as the promise returned by getLoggedIn() resolves. which only happens before running the test if we `await flush()`, so I added that. Also, the prior setup did not work because it returns a constant promise with loggedIn set to false, so later changing that value did not actually have the desired effect. Change-Id: I6169ead322452c1f131ef75b0e3c46c45e2433f1
Gerrit is a code review and project management tool for Git based projects.
Gerrit makes reviews easier by showing changes in a side-by-side display, and allowing inline comments to be added by any reviewer.
Gerrit simplifies Git based project maintainership by permitting any authorized user to submit changes to the master Git repository, rather than requiring all approved changes to be merged in by hand by the project maintainer.
For information about how to install and use Gerrit, refer to the documentation.
Our canonical Git repository is located on googlesource.com. There is a mirror of the repository on Github.
Please report bugs on the issue tracker.
Gerrit is the work of hundreds of contributors. We appreciate your help!
Please read the contribution guidelines.
Note that we do not accept Pull Requests via the Github mirror.
The Developer Mailing list is repo-discuss on Google Groups.
Gerrit is provided under the Apache License 2.0.
Install Bazel and run the following:
git clone --recurse-submodules https://gerrit.googlesource.com/gerrit cd gerrit && bazel build release
The instruction how to configure GerritForge/BinTray repositories is here
On Debian/Ubuntu run:
apt-get update & apt-get install gerrit=<version>-<release>
NOTE: release is a counter that starts with 1 and indicates the number of packages that have been released with the same version of the software.
On CentOS/RedHat run:
yum clean all && yum install gerrit-<version>[-<release>]
On Fedora run:
dnf clean all && dnf install gerrit-<version>[-<release>]
Docker images of Gerrit are available on DockerHub
To run a CentOS 8 based Gerrit image:
docker run -p 8080:8080 gerritcodereview/gerrit[:version]-centos8
To run a Ubuntu 20.04 based Gerrit image:
docker run -p 8080:8080 gerritcodereview/gerrit[:version]-ubuntu20
NOTE: release is optional. Last released package of the version is installed if the release number is omitted.