• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mendersoftware / mender-server / 1522914193

01 Nov 2024 06:55AM UTC coverage: 73.537% (+0.7%) from 72.816%
1522914193

Pull #171

gitlab-ci

web-flow
chore: Bump the backend-tests-python-dependencies group across 2 directories with 9 updates

Bumps the backend-tests-python-dependencies group with 2 updates in the /backend/services/deployments/tests/mock-workflows directory: [markupsafe](https://github.com/pallets/markupsafe) and [werkzeug](https://github.com/pallets/werkzeug).
Bumps the backend-tests-python-dependencies group with 7 updates in the /backend/tests directory:

| Package | From | To |
| --- | --- | --- |
| [boto3](https://github.com/boto/boto3) | `1.35.34` | `1.35.53` |
| [cryptography](https://github.com/pyca/cryptography) | `43.0.1` | `43.0.3` |
| [minio](https://github.com/minio/minio-py) | `7.2.9` | `7.2.10` |
| [redis](https://github.com/redis/redis-py) | `5.1.1` | `5.2.0` |
| [stripe](https://github.com/stripe/stripe-python) | `11.1.0` | `11.2.0` |
| [pillow](https://github.com/python-pillow/Pillow) | `10.4.0` | `11.0.0` |
| [pyparsing](https://github.com/pyparsing/pyparsing) | `3.1.4` | `3.2.0` |



Updates `markupsafe` from 2.1.5 to 3.0.2
- [Release notes](https://github.com/pallets/markupsafe/releases)
- [Changelog](https://github.com/pallets/markupsafe/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/markupsafe/compare/2.1.5...3.0.2)

Updates `werkzeug` from 3.0.4 to 3.1.0
- [Release notes](https://github.com/pallets/werkzeug/releases)
- [Changelog](https://github.com/pallets/werkzeug/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/werkzeug/compare/3.0.4...3.1.0)

Updates `boto3` from 1.35.34 to 1.35.53
- [Release notes](https://github.com/boto/boto3/releases)
- [Commits](https://github.com/boto/boto3/compare/1.35.34...1.35.53)

Updates `cryptography` from 43.0.1 to 43.0.3
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/43.0.1...43.0.3)

Updates `minio` from 7.2.9 to 7.2.10
- [Release notes](https://github.com/minio/minio-py/releases)
- [Commits](https://github.com/... (continued)
Pull Request #171: chore: Bump the backend-tests-python-dependencies group across 2 directories with 9 updates

4423 of 6387 branches covered (69.25%)

Branch coverage included in aggregate %.

40156 of 54234 relevant lines covered (74.04%)

37.03 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

94.44
/backend/services/workflows/app/worker/timer.go
1
// Copyright 2022 Northern.tech AS
2
//
3
//    Licensed under the Apache License, Version 2.0 (the "License");
4
//    you may not use this file except in compliance with the License.
5
//    You may obtain a copy of the License at
6
//
7
//        http://www.apache.org/licenses/LICENSE-2.0
8
//
9
//    Unless required by applicable law or agreed to in writing, software
10
//    distributed under the License is distributed on an "AS IS" BASIS,
11
//    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
//    See the License for the specific language governing permissions and
13
//    limitations under the License.
14

15
package worker
16

17
import "time"
18

19
// reusableTimer allows using the time.After interface without reallocations.
20
type reusableTimer time.Timer
21

22
func newStoppedTimer() *reusableTimer {
2✔
23
        t := (*reusableTimer)(time.NewTimer(0))
2✔
24
        t.Stop()
2✔
25
        return t
2✔
26
}
2✔
27

28
// Stop ensures that the timer is stopped and the channel is cleared.
29
func (t *reusableTimer) Stop() {
2✔
30
        if (*time.Timer)(t).Stop() {
4✔
31
                select {
2✔
32
                case <-t.C:
×
33
                default:
2✔
34
                }
35
        }
36
}
37

38
func (t *reusableTimer) Reset(d time.Duration) {
2✔
39
        t.Stop()
2✔
40
        (*time.Timer)(t).Reset(d)
2✔
41
}
2✔
42

43
func (t *reusableTimer) After(d time.Duration) <-chan time.Time {
2✔
44
        t.Reset(d)
2✔
45
        return t.C
2✔
46
}
2✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc